/**
  ******************************************************************************
  * @file    Libraries/HardDriver/inc/ssd1306.h
  * @author  lilianfu
  * @version V1.0.0
  * @date    18-October-2016
  * @brief   this file contain SSD1306 OLED Driver fubction
  ******************************************************************************
  * @attention
  * Class declaration for Solomon Systech Limited SSD1306 OLED Driver
  * Datasheet:
  * https://cdn-shop.adafruit.com/datasheets/SSD1306.pdf
  *void main(void)
  *{
  *SetBusCLK_80M();
  *OLED_Init();
  *OLED_P6x8Str(31,2,"Hello World!");
  *OLED_CLS();
  *delayms(100);
  *uint8_t a= 120;
  *uint8_t mess[20];
  *for(;;)
  *{
  *sprintf(mess, "a:%0d", a);
  *OLED_P6x8Str(2, 2, mess);
  *delayms(200);
  *OLED_CLS();
  *delayms(200);
  *OLED_Fill(0xff);
  *}
  *}
  ******************************************************************************
  */
#ifndef _OLED_H
#define _OLED_H
#ifdef __cplusplus
extern "C" {
#endif
#include "stm32f10x.h"
#include "Delay.h"
	extern uint8_t TempData[128];
	void OLED_Init(void);
	void OLED_CLS(void);
	void OLED_P6x8Str(uint8_t x, uint8_t y, uint8_t ch[]);
	void OLED_P8x16Str(uint8_t x, uint8_t y, uint8_t ch[]);
	void OLED_PutPixel(uint8_t x, uint8_t y);
	void OLED_PutBlocks(uint8_t x, uint8_t y);
	void OLED_Rectangle(uint8_t x1, uint8_t y1, uint8_t x2, uint8_t y2, uint8_t gif);
	void OLED_Fill(uint8_t dat);
	void OLED_P6x8byte(uint8_t x, uint8_t y, uint8_t i);
	void OLED_Num(uint8_t x, uint8_t y, uint16_t n);
	void OLED_TSL1401(uint16_t *Pixel);
	void OLED_Binarization_TSL1401(uint16_t *Pixel);
#ifdef __cplusplus
}
#endif
#endif
